import * as React from "react";
import './style';

const classnames = require('classnames');



export interface InputProps {
    value?: string; // 输入框的值
    className?: string;
    children?: any;
    onChange?: React.FormEventHandler<HTMLElement>;
    disabled?: boolean; // 是否禁用
}

export const Input: React.SFC<InputProps> = (props: InputProps) => {

    var {
        value,
        className,
        children,
        onChange,
        ...rest
    } = props;

    var wrapCls = classnames("m-input", className)
    return <div className={wrapCls}   >
        <input value={value} onChange={onChange} {...rest} />
    </div>;
};

export default Input;